package com.test.ws.s1.service.imp;

import com.test.ws.s1.bean.Acl_user;
import com.test.ws.s1.bean.Userqt;
import com.test.ws.s1.mapper.UserqtDao;
import com.test.ws.s1.service.UserqtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class UserqtServiceimp implements UserqtService {
    @Autowired
    private UserqtDao userqtDao;

    public ArrayList<Userqt> selectUserqt(Userqt userqt) {
        return userqtDao.selectUserqt(userqt);
    }

    /// 改
    @Override
    public int updateUserqt(Userqt userqt) {
        System.out.println("---------------------------------"+userqt+"---------------------------------");
        return userqtDao.updateUserqt(userqt);
    }

    /// 回显
    @Override
    public Userqt selectUserqtById(int user_id) {
        return userqtDao.selectUserqtById(user_id);
    }

    @Override
    public int insertUserqt(Userqt userqt) {
        return userqtDao.insertUserqt(userqt);
    }

    @Override
    public Userqt selectUserqtByName(Userqt userqt) {
        return userqtDao.selectUserqtByName(userqt);
    }

    @Override
    public  int zeUserqt(Userqt userqt) {
        return userqtDao.zeUserqt(userqt);
    }

    @Override
    public int deleteUserqt(int user_id) {
        return userqtDao.deleteUserqt(user_id);
    }

    @Override
    public Acl_user selectUserqtByName1(Acl_user acl_user) {
        return userqtDao.selectUserqtByName1(acl_user);
    }

    @Override
    public int updateUserqtGrZx(Userqt userqt) {
        return userqtDao.updateUserqtGrZx(userqt);
    }

    @Override
    public int insertUserqt1(Acl_user acl_user) {
        return userqtDao.insertUserqt1(acl_user);
    }

    @Override
    public int deleteUserqtZx(Userqt userqt) {
        return userqtDao.deleteUserqtZx(userqt);
    }


}
